Xcode错误 - Apple Mach-O Linker (ld) Error Group

使用 ZipArchive 时,Xcode 报错 Apple Mach-O Linker (ld) Error Group,错误原因是类库依赖的框架没有添加,添加缺失的框架即可,在这个例子中我添加了 libe.tbd 后解决。

Teaching a man (or women) how to fish:

Usually Mach-O Linker Error means you have not included a header file for a function you are using in your code.

Easiest way is to copy that function or method call and paste into Xcode quick search using shift+command+O. This will search all frameworks (and header files), find that function or method call and show you its location (the header in this case):

In this case, this call belongs to the Accelerate framework so on top of your file, enter #import <Accelerate/Accelerate.h>.

When doing quick search, you might have to get rid of leading underscore. In other words, search for vImageBoxConvolve_ARGB8888

Hope this helps

参考链接:

http://stackoverflow.com/questions/17414460/xcode-gives-apple-mach-o-linker-error

http://stackoverflow.com/questions/5329001/apple-mach-o-linker-error-when-compiling-for-device